package com.maxie.decorate.impl;

import com.maxie.component.Coffee;
import com.maxie.decorate.Decorate;

public class Ice extends Decorate {
    public Ice(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public double getCost() {
        return coffee.getCost() + 0.5;
    }

    @Override
    public String getDescription() {
        return coffee.getDescription() + "加冰";
    }
}
